package com.control.qct.businesssteward.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 报表
 * Created by Administrator on 2017/12/25 0025.
 */

public class StatementActivity extends BaseActivity {

    @BindView(R.id.tv_day_account_statement)
    TextView mTvDayAccountStatement;
    @BindView(R.id.tv_month_account_statement)
    TextView mTvMonthAccountStatement;
    @BindView(R.id.tv_goods_statement)
    TextView mTvGoodsStatement;
    @BindView(R.id.tv_type_statement)
    TextView mTvTypeStatement;
    @BindView(R.id.tv_brand_statement)
    TextView mTvBrandStatement;
    @BindView(R.id.tv_supplier_statement)
    TextView mTvSupplierStatement;
    @BindView(R.id.tv_complimentary_statement)
    TextView mTvComplimentaryStatement;
    @BindView(R.id.tv_inventory_statement)
    TextView mTvInventoryStatement;
    @BindView(R.id.tv_member_statistical_table)
    TextView mTvMemberStatisticalTable;

    private Bundle mBundle;

    public StatementActivity() {
        super(R.layout.activity_statement);
    }

    @Override
    protected void initView() {
        setLeftIcon(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        setTitle("报表");
    }

    @OnClick({R.id.tv_day_account_statement, R.id.tv_month_account_statement, R.id.tv_goods_statement, R.id
            .tv_type_statement, R.id.tv_brand_statement, R.id.tv_supplier_statement, R.id.tv_complimentary_statement,
            R.id.tv_inventory_statement, R.id.tv_member_statistical_table})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_day_account_statement://日结统计表
                mBundle = new Bundle();
                mBundle.putInt("id", 1);
                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_month_account_statement://月结统计表
                mBundle = new Bundle();
                mBundle.putInt("id", 2);
                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_goods_statement://商品统计表
                mBundle = new Bundle();
                mBundle.putInt("id", 3);
                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_type_statement://品类统计表
                mBundle = new Bundle();
                mBundle.putInt("id", 4);
                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_brand_statement://品牌统计表
                mBundle = new Bundle();
                mBundle.putInt("id", 5);
                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_supplier_statement://供应商统计表
//                mBundle = new Bundle();
//                mBundle.putInt("id", 6);
//                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_complimentary_statement://赠品统计表
//                mBundle = new Bundle();
//                mBundle.putInt("id", 7);
//                startActivity(StatisticalTableActivity.class,mBundle);
                break;
            case R.id.tv_inventory_statement://库存报表
//                startActivity(InventoryStatisticActivity.class);
                break;
            case R.id.tv_member_statistical_table://会员统计表
//                startActivity(MemberStatisticActivity.class);
                break;
        }
    }
}
